﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.IRepository.SystemManager;
using SystemCenterSoa.PoModel.SystemManager;

namespace SystemCenterSoa.Service.SystemManager
{
    public class PerformanceService
    {
        private readonly IPerformanceRepository _performanceRepository;
        public PerformanceService(IPerformanceRepository performanceRepository)
        {
            _performanceRepository = performanceRepository;
        }

        //添加考核任务
        public bool AddTheAssessmentTask(TheAssessmentTask theAssessmentTask)
        {
            return _performanceRepository.AddTheAssessmentTask(theAssessmentTask);
        }
        //删除考核任务
        public bool DelTheAssessmentTask(int id)
        {
            return _performanceRepository.DelTheAssessmentTask(id);
        }
        //显示考核统计
        public List<AssessmentTotal> ShowAssessmentTotal()
        {
            return _performanceRepository.ShowAssessmentTotal();
        }
        //显示考核任务
        public List<TheAssessmentTask> ShowTheAssessmentTask()
        {
            return _performanceRepository.ShowTheAssessmentTask();
        }
        //归档
        public bool UpdateGuiDang(int id)
        {
            return _performanceRepository.UpdateGuiDang(id);
        }
        //修改考核任务
        public bool UpdateTheAssessmentTask(TheAssessmentTask theAssessmentTask)
        {
            return _performanceRepository.UpdateTheAssessmentTask(theAssessmentTask);
        }

    }
}
